﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using FwProject.ShoppingMall.Shop;

namespace FwProject.Shop.Dto
{
    [AutoMap(typeof(ShopProductSku))]
    public class ShopProductSkuInput
    {
        /// <summary>
        /// 组合spcevalue组合id
        /// </summary>
        [Required]
        [Display(Name = "组合id")]
        public string SpaceValueid { get; set; }

        [Display(Name = "组合名称")]
        public string SpaceValueName { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        [Display(Name = "商品编号")]
        public Guid ShopProductid { get; set; }
        /// <summary>
        /// 销售价
        /// </summary>
        [Required]
        [Display(Name = "销售价")]
        public decimal SpceMarketPrice { get; set; } = 0m;
        /// <summary>
        /// 成本价
        /// </summary>
        [Required]
        [Display(Name = "成本价")]
        public decimal SpceCostPrice { get; set; } = 0m;
        /// <summary>
        /// 重量
        /// </summary>
        [Required]
        [Display(Name = "重量")]
        public float SpceWeight { get; set; } = 0;
    }
}
